package com.greenline.search.report.model;

/**
 * Created with IntelliJ IDEA.
 * User: liulei
 * Date: 14-2-12
 * Time: 下午5:08
 * To change this template use File | Settings | File Templates.
 */
public class Configuration {

    public static final String TEST_DOCTOR_SEARCH = "http://192.168.1.38:2000/doctor_search?";
    public static final String TEST_HOSPITAL_SEARCH = "http://192.168.1.38:2000/hospital_search?";

    public static final String DOCTOR_SEARCH = "http://10.10.100.153:9999/doctor_search?";
    public static final String HOSPITAL_SEARCH = "http://10.10.100.153:9999/hospital_search?";

    public static  boolean FLAG_TEST = true;

    public static final int TOP_NO_RESULT_WORD_COUNT = 100;

    public static String FOLDER_BACKSLASH = "/";

    public static final int WEEK_DAY_COUNT = 7;

    public static String WINDOWS_ROOT_PATH = "E:\\projects\\search_test\\src\\main\\resources\\";
    public static String WINDOWS_FOLDER_BACKSLASH = "\\";

    public static String VIRTUAL_ROOT_PATH = "/home/liulei/projects/search-test-liulei/src/main/resources/";
    public static String ROOT_PATH = "/home/caiyt/query_log/";

    static {
        if(System.getProperty("os.name").contains("Windows")){
            ROOT_PATH = WINDOWS_ROOT_PATH;
            FOLDER_BACKSLASH = WINDOWS_FOLDER_BACKSLASH;
        }else if(System.getProperty("user.name").equals("liulei")&& System.getProperty("user.country").equals("US")){
            ROOT_PATH = VIRTUAL_ROOT_PATH;
        }else {
            FLAG_TEST = false;
        }
    }
    public static String OBJECT_PATH = ROOT_PATH + "report" + FOLDER_BACKSLASH;
    public static Integer EVERY_ENTITY_LIST_COUNT = 50;
    public static Integer MIN_FREQUENCY = 50;
}
